class RegistrationMailer < ActionMailer::Base
  include Resque::Mailer

  default from: 'webmaster@foo.com'

  def confirmation(user_id)
    user = User.find(user_id)
    @confirmation_url = url_for '/registration/confirm', id: user.id, token: user.activation_token
    mail to: user.email
  end
end